home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
fax
/
src
/
port
/
4.4bsd
/
cuserid.c
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
179b
|
14 lines
#include <stddef.h>
#include <unistd.h>
#include <stdio.h>
char *
cuserid(char *s)
{
if (s) {
strncpy(s, getlogin(), L_cuserid);
return s;
} else
return getlogin();
}